<?php

class partialHelper extends Helper {

	function render($name, $params = array()) {	
		
		//$file = VIEWS.$this->params['controller'].DS.$name.$this->ext;
		$file = VIEWS.$this->params['controller'].DS.$name.'.'.'thtml';
		if (file_exists($file)) {
			//$params = array_merge_recursive($params, $this->loaded);
			return $this->renderElement($file, array_merge($this->viewVars, $params), false);
		}else{
			return "Element Not Found: " . $file;
		}
		
	}


}

?>
